Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬¬if objValue="Open" then¬ put empty into theFonts¬ repeat with x=1 to the number of menuitems in menu "font"¬ get menuitem x of menu "font"¬ put it & return after theFonts¬ end repeat¬ wsSet wdID,"10","Text", theFonts¬ wsSet wdID,"10","Selection", "1"¬ wsSet wdID,"11","Selection", "3"¬ wsSet wdID,"12","Selection", "1"¬ ¬else if objValue="Close" then ¬ ¬else if objValue="Suspend" then ¬ ¬else if objValue="Resume" then ¬ ¬else if objValue="CloseBox" then ¬ ¬else if objValue="ZoomBox" then ¬ ¬else if objValue="GrowBox" then ¬ ¬else if objValue="TitleBar" then ¬ ¬end if¬¬--end windowEvent
ItemType: CNTL
Rect: 4,6,72,19
TextFont: Chicago
TextSize: 10
Name: Buttons
Style: 480
Min: 0
Max: 100
Value: 0
Step: 1
Leap: 10
Script: if objValue is true then¬ wsSet wdID,objNo,"HILITE",false¬ wsSend wdID,"ZOOMIN"¬else¬ set cursor to watch¬ wsSet wdID,objNo,"HILITE",true¬ wsSet wdID,2,"HILITE",false¬ put empty into btnText¬ repeat with x = 1 to number of cd btns¬ if the visible of cd btn x then¬ get name of cd btn x¬ put "cd btn" into word 1 to 2 of it¬ put it & numtochar(194) after btnText¬ end if¬ end repeat¬ repeat with x = 1 to number of bg btns¬ if the visible of bg btn x then¬ get name of bg btn x¬ put "bg btn" into word 1 to 2 of it¬ put it & numtochar(194) after btnText¬ end if¬ end repeat¬ ¬ put "btnList_TEXT:"&btnText&return into toSet¬ put "xObjType: BTN"&return after toSet¬ put "i0_ZOOMOUT"&return after toSet¬ ¬ put "Name_TEXT:"&return after toSet¬ put "TOP_TEXT:"&return&"LEFT_TEXT:"&return after toSet¬ put "HEIGHT_TEXT:"&return&"WIDTH_TEXT:"&return after toSet¬ ¬ set Properties of window wdName to toSet¬ ¬end if
ItemType: CNTL
Rect: 76,6,136,19
TextFont: Chicago
TextSize: 10
Name: Fields
Style: 480
Min: 0
Max: 100
Value: 0
Step: 1
Leap: 10
Script: if objValue is true then¬ wsSet wdID,objNo,"HILITE",false¬ wsSend wdID,"ZOOMIN"¬else¬ set cursor to watch¬ wsSet wdID,objNo,"HILITE",true¬ wsSet wdID,1,"HILITE",false¬ put empty into fldText¬ repeat with x = 1 to number of cd flds¬ if the visible of cd fld x then¬ get name of cd fld x¬ put "cd fld" into word 1 to 2 of it¬ put it & numtochar(194) after fldText¬ end if¬ end repeat¬ repeat with x = 1 to number of bg flds¬ if the visible of bg fld x then¬ get name of bg fld x¬ put "bg fld" into word 1 to 2 of it¬ put it & numtochar(194) after fldText¬ end if¬ end repeat¬ ¬ put "btnList_TEXT: "&fldText&return into toSet¬ put "xObjType: FLD"&return after toSet¬ put "i0_ZOOMOUT" after toSet¬ ¬ set properties of window wdName to toSet¬end if¬
ItemType: LIST
Rect: 4,24,136,134
Name: BtnList
Text:
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬set cursor to watch¬put empty into toSet¬if number of items in objValue = 1 then¬ put BtnList_SelectionText of window wdName into o¬ do "Get short name of o"¬ if word 2 to 3 of it ="button id" then get empty¬ put "Name_TEXT:"&&it&return after toSet¬ do "Get the textFont of o"¬ put "Font List_SelectionText:"&&it&return after toSet¬ do "Get the textSize of o"¬ put "Size List_SelectionText:"&&it&return after toSet¬ do "Get the textStyle of o"¬ put "Style List_SelectionText:"&&it&return after toSet ¬ do "Get rect of o"¬ put "TOP_TEXT:"&&item 2 of it&return after toSet¬ put "LEFT_TEXT:"&&item 1 of it&return after toSet¬ put "HEIGHT_TEXT:"&&(item 4 of it)-(item 2 of it)&return after toSet¬ put "WIDTH_TEXT:"&&(item 3 of it)-(item 1 of it)&return after toSet¬else¬ put "Name_TEXT:"&return after toSet ¬ put "Font List_Selection: 0"&return after toSet¬ put "Size List_Selection: 0"&return after toSet¬ put "Style List_Selection: 0"&return after toSet¬ put "TOP_TEXT:"&return&"LEFT_TEXT:"&return after toSet¬ put "HEIGHT_TEXT:"&return&"WIDTH_TEXT:"&return after toSet¬end if¬set Properties of window wdName to toSet¬¬--end mouseUp
ItemType: TEXT
Rect: 146,6,295,18
Name: Name
StyleRun: 0,1;Geneva;9;Plain;0,0,0
Selection: 0,32767
Script: put BtnList_SelectionText of window wdName into ol¬put empty into newNames¬repeat with x = 1 to number of lines in ol¬ put line x of ol into o¬ do "set name of o to objValue"¬ put (word 1 to 2 of ol) && quote&objValue"e&return after newNames¬end repeat¬set btnList_TextOfSelection of window wdName to newNames¬
ItemType: LBL
Rect: 145,106,296,118
Text: Top Left Height Width
ItemType: TEXT
Rect: 142,117,180,133
Name: Top
LockText: FALSE
TextAlign: Center
KeyFilter: OnlyDigits
Script: if objValue is not empty then¬ put BtnList_SelectionText of window wdName into ol¬ repeat with x = 1 to number of lines in ol¬ put line x of ol into o¬ do "set top of o to objValue"¬ end repeat¬end if
ItemType: TEXT
Rect: 181,117,219,133
Name: Left
LockText: FALSE
TextAlign: Center
KeyFilter: OnlyDigits
Script: if objValue is not empty then¬ put BtnList_SelectionText of window wdName into ol¬ repeat with x = 1 to number of lines in ol¬ put line x of ol into o¬ do "set LEFT of o to objValue"¬ end repeat¬end if
ItemType: TEXT
Rect: 220,117,258,133
Name: Height
LockText: FALSE
TextAlign: Center
KeyFilter: OnlyDigits
Script: if objValue is not empty then¬ put BtnList_SelectionText of window wdName into ol¬ repeat with x = 1 to number of lines in ol¬ put line x of ol into o¬ do "set HEIGHT of o to objValue"¬ end repeat¬end if
ItemType: TEXT
Rect: 259,117,299,133
Name: Width
LockText: FALSE
TextAlign: Center
KeyFilter: OnlyDigits
Script: if objValue is not empty then¬ put BtnList_SelectionText of window wdName into ol¬ repeat with x = 1 to number of lines in ol¬ put line x of ol into o¬ do "set WIDTH of o to objValue"¬ end repeat¬end if
ItemType: POP
Rect: 176,24,195,37
Name: Font List
Script: if objValue is not empty then¬ put BtnList_SelectionText of window wdName into ol¬ repeat with x = 1 to number of lines in ol¬ put line x of ol into o¬ do "set the textFont of o to objValue"¬ end repeat¬end if
ItemType: POP
Rect: 176,56,228,69
Name: Size List
Text: 9¬10¬12¬14¬16¬18
Script: if objValue is not empty then¬ put BtnList_SelectionText of window wdName into ol¬ repeat with x = 1 to number of lines in ol¬ put line x of ol into o¬ do "set the textSize of o to objValue"¬ end repeat¬end if
Script: if objValue is not empty then¬ put BtnList_SelectionText of window wdName into ol¬ repeat with x = 1 to number of lines in ol¬ put line x of ol into o¬ do "set textStyle of o to objValue"¬ end repeat¬end if